package gof.com.yew.composite;

public class CompositeDemo01 {
	
	public static void main(String[] args) {
		AbstractFile f2,f3,f4,f5;
		Folder f1 = new Folder("我的收藏夹");
		f2 = new TxtFile("menu.txt");
		f3 = new VedioFile("learn.avi");
		f1.add(f2);
		f1.add(f3);
		Folder f11 = new Folder("喜欢的电影");
		f4 = new VedioFile("无心法师.mp4");
		f5 = new VedioFile("斗破苍穹.mp4");
		f11.add(f4);
		f11.add(f5);
		f1.add(f11);
		f1.killVirus();
	}

}
